package com.luo.backend.dto;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 更新商家状态请求DTO
 */
public class UpdateMerchantStatusRequest {
    
    @NotNull(message = "状态不能为空")
    @Min(value = 0, message = "状态值必须是0或1")
    @Max(value = 1, message = "状态值必须是0或1")
    private Integer status;  // 1-营业中，0-休息中
    
    public Integer getStatus() {
        return status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
}








